/**
 * Created by Ysssssss on 2021/5/26.
 */

import React, { useEffect, useRef } from 'react';
import { InputNumber } from "antd";

const InputNumberWithSuffix = props => {
    const { suffix, className = '', style = {}, ...otherProps } = props

    return (
        <div
            style={style}
            className={`input-number-with-suffix-container ${className}`}
        >
            <InputNumber
                className={className}
                style={style}
                { ...otherProps }
            />
            <div className="input-number-with-suffix">{ suffix }</div>
        </div>
    )
}

export default InputNumberWithSuffix